<?php
defined('IN_IXDCW') or exit('Access Denied');
include tpl('header');
show_menu($menus);
?>
	<form method="post" action="?">
		<input type="hidden" name="moduleid" value="<?php echo $moduleid; ?>"/>
		<input type="hidden" name="file" value="<?php echo $file; ?>"/>
		<div>
			<div class="tt">车主金卡设置</div>
			<table cellpadding="2" cellspacing="1" class="tb">
				<tr>
					<td class="tl">车主金卡定价</td>
					<td>
						<input type="text" size="3" name="setting[price]" value="<?php echo $MOD['price']; ?>"/> 元/张
					</td>
				</tr>
				<tr>
					<td class="tl">过期时间</td>
					<td><?php echo Post::datetimeBox('setting[expiretime]', $MOD['expiretime'], 'width:140'); ?></td>
				</tr>
				<tr>
					<td class="tl">发货提醒(邮件):标题</td>
					<td>
						<input type="text" size="80" name="setting[sendalert_title]" value="<?php echo $MOD['sendalert_title']; ?>"/>
					</td>
				</tr>
				<tr>
					<td class="tl">发货提醒(邮件):内容</td>
					<td >
						<?php
						echo Post::kindEditor(
							'setting[sendalert]',
							$moduleid,
							$MOD['sendalert'],
							'datatype="*5-99999" nullmsg="请填写内容" errormsg="内容最少5字"','500px','300px');
						?>
						<span style="color: #444">请按以上格式填写发货提醒，用户名：username,订购数量：buynum
							<br/>(发货提醒将以邮件，站内信的形式发送到用户的邮箱)</span>
					</td>
				</tr>
				<tr>
					<td class="tl">优惠说明</td>
					<td >
						<?php
						echo Post::kindEditor(
							'setting[youhui]',
							$moduleid,
							$MOD['youhui'],
							'datatype="*5-99999" nullmsg="请填写内容" errormsg="内容最少5字"','800px','400px');
						?>
					</td>
				</tr>

			</table>
		</div>
		<div class="sbt">
			<input type="submit" name="submit" value="确 定" class="btn"/>
		</div>
	</form>
	<script type="text/javascript">Menuon(0);</script>
<?php include tpl('footer'); ?>